package com.kangfu.api.service;

import com.kangfu.db.model.vo.LessonInfoVo;
import com.kangfu.db.model.vo.UserPrescriptionLessonWeekVo;
import com.kangfu.db.model.vo.UserPrescriptionLessonVo;

import java.time.LocalDate;
import java.util.List;

/**
 * 课程视频Service接口
 * 
 * @author ruoyi
 * @date 2022-08-14
 */
public interface ILessonService 
{
    /**
     * 获取某一天的推荐课程
     * @param localDate
     * @return
     */
    public List<UserPrescriptionLessonVo> selectUserPrescriptionLessonByDate(int userId, LocalDate localDate);

    /**
     * 获取某个用户的推荐课程历史记录
     * @param userId
     * @param page
     * @return
     */
    public List<UserPrescriptionLessonWeekVo> getLessonHistory(int userId, int page);


    /**
     * 获取某个课程的详情
     * @param recommendId
     * @return
     */
    public LessonInfoVo getLessonInfo(int userId, int recommendId);


    /**
     * 打卡
     * @param userId
     * @param recommendId
     */
    public void checkin(Integer userId, Integer recommendId);



}
